package com.wykj.business.controller;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.wykj.business.service.WebStatService;

import ch.qos.logback.classic.Logger;

@Controller
public class WebStatController {
	private static final Logger logger = (Logger) LoggerFactory.getLogger(WebStatController.class);
    @Autowired
    private WebStatService webStatService;
    
    @RequestMapping(value="/webstat",method = { RequestMethod.GET, RequestMethod.POST })
    public String index1(Model model,Integer pageNum,Integer pageSize) {
        webStatService.findAll();
        logger.info("你好，ceshi!");
        return "user/index";
    }
}
